﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddDepartment.ascx.cs" Inherits="MockPrjTeam4.Pages.Views.AddDepartment" %>
<%@ Import Namespace="MockPrjTeam4.Entity" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .wrap
    {
        margin-top: 20px;
        height: 580px;
        width: 850px;
    }
    .txt
        {
            height: 20px;
            width: 200px;    
        }
        .txtExtend
        {
            height: 90px;
            width: 200px;    
        }
        .cbl
        {
            border: 1px solid black; 
            height: 120px;
            width: 250px;   
            overflow: scroll;
        }
        .btn
        {
            margin-left: 50px;
            margin-top: 0px;    
        }
</style>

<div class="wrap">
<div class="btn">
    <asp:Label ID="lblMessage" runat="Server" ForeColor="red"></asp:Label>
</div>
    <asp:ScriptManager ID="ScriptManager1" runat="Server"></asp:ScriptManager>
        <asp:TabContainer ID="tcDep" runat="server" BorderColor="#999999" 
            Style="margin-left:50px; margin-bottom: 0px; padding-bottom: 0px; height: 640px; width: 850px" 
        ActiveTabIndex="0">
            <asp:TabPanel runat="Server" ID="tpDetails1" >
                <HeaderTemplate>
                <span style="font-weight:bold">Details 1</span>
                
</HeaderTemplate>
                
<ContentTemplate>
                    <table border="0" width="100%" cellpadding="2px" >
                    	<tr>
                    		<td>Department Name<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtDepName" runat="server" CssClass="txt"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDepName"
                                ErrorMessage="You must enter Department Name"></asp:RequiredFieldValidator>
                            </td>
                            <td>Type of Business</td>
                            <td>
                                <asp:TextBox ID="txtTypeOfBusiness" runat="server" ClientIDMode="Static" BackColor="#CCCCCC"></asp:TextBox>
                                <asp:HiddenField ID="hdfTypeOfBusinessId" runat="Server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="lkbtnTypeOfBusiness" runat="server" 
                                    OnClientClick="popup('PopupTypeofBusiness.aspx', 500, 420);" >Look up</asp:LinkButton>
                            </td>
                    	</tr>
                        <tr>
                    		<td>Department Short Description<span style="color:Red">*</span></td>
                            <td>
                                <asp:TextBox ID="txtDepShortDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDepShortDes"
                                ErrorMessage="You must enter Department Short Description"></asp:RequiredFieldValidator>
                            </td>
                            <td>SIC Code</td>
                            <td>
                                <asp:TextBox ID="txtSICCode" ClientIDMode="Static" runat="server" BackColor="#CCCCCC"></asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>
                                Lead Contact
                                <br /><br />
                                Copy Address from
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" BackColor="#CCCCCC" ClientIDMode="Static"></asp:TextBox>
                                <asp:HiddenField ID="hdfContact" runat="Server" ClientIDMode="Static"/>
                                <asp:LinkButton ID="LinkButton1" runat="server" 
                                    OnClientClick="popup('PopupContact.aspx', 650, 420);">Look up</asp:LinkButton>
                                <br />
                                <asp:RadioButton ID="rdoOrganisation" runat="server" Text="Organisation"/>&nbsp&nbsp&nbsp&nbsp&nbsp
                                <asp:RadioButton ID="rdoParent" runat="server" Text="Parent"/>
                            </td>
                    		<td>Department Full Description</td>
                            <td>
                                <asp:TextBox ID="txtDepFullDes" runat="server" CssClass="txtExtend"></asp:TextBox>
                            </td>
                    	</tr>
                        <tr>
                            <td>Address Line 1</td>
                            <td>
                                <asp:TextBox ID="txtAddLine1" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                            <td>Phone Number</td>
                            <td>
                                <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 2</td>
                            <td>
                                <asp:TextBox ID="txtAddLine2" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                            <td>Fax</td>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Address Line 3</td>
                            <td>
                                <asp:TextBox ID="txtAddLine3" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                            <td>Email</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Postcode</td>
                            <td>
                                <asp:TextBox ID="txtPostcode" runat="server"></asp:TextBox>
                                <asp:LinkButton ID="lkbtnPostcode" runat="server">Look up</asp:LinkButton>
                            </td>
                            <td>Web Address</td>
                            <td>
                                <asp:TextBox ID="txtWebAdd" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Town/Village/City</td>
                            <td>
                                <asp:TextBox ID="txtTown" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                            <td>Is Active?</td>
                            <td>
                                <asp:CheckBox ID="chkActive" runat="server"/>
                            </td>
                        </tr>
                        <tr>
                            <td>County</td>
                            <td>
                                <asp:TextBox ID="txtCounty" runat="server" CssClass="txt"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>Nation/Country</td>
                            <td>
                                <asp:DropDownList ID="ddlCountry" runat="server" CssClass="txt" 
                                    DataTextField="CountryName" DataValueField="CountryId"></asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                
</ContentTemplate>
            
</asp:TabPanel>
</asp:TabContainer>
</div>
<div class="btn">
    <asp:Button ID="btnSave" runat="Server" Text="Save" OnClick="btnSave_Click" 
    OnClientClick="window.history.go(-1);return false;"/>&nbsp
    <asp:Button ID="btnBack" runat="Server" Text="Back" OnClientClick="window.history.go(-1);return false;" 
    CausesValidation="false" onclick="btnBack_Click"/>
</div>
